home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Powervisor v1.10b disk2.adf / Functions < prev    next >
Text File  |  1991-09-28  |  22KB  |  880 lines

  1. *-----------------------*
  2. * Reference : Functions * Sat Sep 28 17:23:04 1991
  3. *-----------------------*
  4.  
  5.  
  6. ============================== Introduction ==================================
  7.  
  8. This reference file contains all functions. Commands are not in this file.
  9. Note that you can use these functions from ARexx. Simply use the same format
  10. for normal commands :
  11.  
  12.    A function call in PowerVisor : res=if(a>b,1,2)
  13.    How you must do this in ARexx : 'if a>b 1 2'
  14.                                    res=result
  15.  
  16.  
  17. ================================= isbreak ====================================
  18.  
  19.    <result> = ISBREAK( <address> )
  20.  
  21.  
  22. Test if there is a ¹breakpoint in the ³current debug task on <address>.
  23. If true this function returns the ²breakpoint number and the
  24. ²breakpoint type in one longword, else it returns 0.
  25.  
  26.    <result> has the following format :
  27.  
  28.       NNNNTTTT
  29.  
  30.    with NNNN a word containing the breakpoint number
  31.    and TTTT containing the breakpoint type
  32.  
  33.    The following types are supported :
  34.       'T'   ²temporary breakpoint
  35.       'N'   ²normal breakpoint
  36.       'P'   ²profile breakpoint
  37.       'C'   ²conditional breakpoint
  38.       'A'   ²after breakpoint (timeout)
  39.       's'   breakpoint used to skip a BSR or JSR (private breakpoint)
  40.  
  41.  
  42. Related commands: debug break trace
  43.  
  44. Related functions: getdebug toppc botpc
  45.  
  46. Related lists: dbug
  47.  
  48. Related tutor file: Debug
  49.  
  50.  
  51. ================================ geterror ====================================
  52.  
  53.    <error> = GETERROR( <expression string> )
  54.  
  55.  
  56. ³Evaluate an expression and ³return the error. If there was no error, 0
  57. is returned.
  58.  
  59.  
  60. Example :
  61.  
  62. < disp geterror(7) <enter>
  63. > 00000000 , 0
  64.  
  65. 0 since 7 is a valid expression.
  66.  
  67. < disp geterror(7+) <enter>
  68. > 00000010 , 16
  69.  
  70. returns 16 since there is a missing operand.
  71.  
  72. The following errors are defined (Note ! Some of these are obsolete and
  73. will never appear) (Note ! you can change the errorstrings since this file
  74. is located in ¹s:PowerVisor-errors) :
  75.  
  76. -6       Stack overflow !!!
  77. -5       A program has crashed !!!
  78. -4       A stack overflow was getting close !
  79. -3       Quiting PowerVisor !
  80. -2       PowerVisor has crashed !
  81. -1       Break...
  82. 0        No error
  83. 1        Not enough memory !
  84. 2        Syntax Error !
  85. 3        This is not a device created with OpenDev !
  86. 4        Bad list element type !
  87. 5        Variable is a constant !
  88. 6        Only <B>yte, <W>ord or <L>ong !
  89. 7        Odd address error !
  90. 8        Could not Lock!
  91. 9        Bracket '(' expected !
  92. 10       To many arguments for library function !
  93. 11       Missing operand !
  94. 12       Lock is not a subdirectory !
  95. 13       Error while opening device !
  96. 14       Unknown list element !
  97. 15       Not implemented yet !
  98. 16       Unknown mode argument !
  99. 17       Unknown AddFunc argument !
  100. 18       This is not a process !
  101. 19       Node is not a task or process !
  102. 20       This task is not freezed !
  103. 21       This task is already freezed !
  104. 22       Node type is wrong !
  105. 23       Addressed element not found !
  106. 24       Window is not sizeable !
  107. 25       This is no supported library function !
  108. 26       No help available for this subject !
  109. 27       Error while opening file !
  110. 28       Error while reading file !
  111. 29       Not a resident module !
  112. 30       Not a lock !
  113. 31       Bad History value (2..1000)
  114. 32       Error opening trackdisk device !
  115. 33       DoIO returned with a non zero value !
  116. 34       There is no task to debug !
  117. 35       Unknown argument for trace !
  118. 36       Unknown argument for debug !
  119. 37       Address is in ROM ! Can't set breakpoint !
  120. 38       Not a debug node !
  121. 39       Bad '@' argument
  122. 40       LoadSeg error !
  123. 41       Unknown argument for dmode !
  124. 42       There is no current debug task !
  125. 43       Unknown argument for break !
  126. 44       Breakpoint does not exist !
  127. 45       There are no symbol hunks !
  128. 46       Symbol not found !
  129. 47       You can only remove variables !
  130. 48       You can not assign to a function !
  131. 49       You must use brackets with functions !
  132. 50       Unknown argument for symbol !
  133. 51       There are no symbols !
  134. 52       You can only realloc blocks smaller than 64K !
  135. 53       Your brackets are really out of order !
  136. 54       The debug task is busy, please try again later !
  137. 55       The task is not tracing !
  138. 56       File does not have the right format !
  139. 57       This is not a structure definition !
  140. 58       Bad argument value !
  141. 59       No colorchange allowed when PowerVisor is on a window !
  142. 60       Could not open font !
  143. 61       Can't execute script file in script file !
  144. 62       Refresh window is not open !
  145. 63       Unknown tag type !
  146. 64       No output allowed on debug logical window !
  147. 65       Error writing file !
  148. 66       Not a Tag file !
  149. 67       Bad tag list value (0 .. 15) !
  150. 68       Unknown or invalid register !
  151. 69       There is a more recent patch then this one installed !
  152. 70       There is no fd file loaded for this library !
  153. 71       Unknown logical window !
  154. 72       Resulting commandline too long after converting from alias string !
  155. 73       Missing left bracket '(' in fd file !
  156. 74       Missing right bracket ')' in fd file !
  157. 75       Bad '##bias' statement in fd file !
  158. 76       You can't close the 'Main' physical window !
  159. 77       You can't close the 'Main' logical window !
  160. 78       Bad argument for 'openlw' ! Arg must be one of 'r','l','d' or 'u' !
  161. 79       Brother logical window must be on same physical window !
  162. 80       Window is not movable !
  163. 81       There is no father for this box !
  164. 82       Unknown preferences argument !
  165. 83       Please close visitor windows first !
  166. 84       Divide by zero !
  167. 85       No group operators allowed for the debug task !
  168. 86       Error opening screen !
  169. 87       You can't remove the 'rc' and 'error' variables. These are private !
  170. 88       'LoadSeg' failed !
  171. 89       Variable names must start with a letter or an underscore !
  172. 90       Error opening physical window !
  173. 91       Error opening logical window !
  174. 92       Bracket ')' expected !
  175. 93       Bracket '}' expected !
  176. 94       Bus error !
  177. 95       Address error !
  178. 96       Illegal instruction !
  179. 97       Division by zero !
  180. 98       CHK instruction !
  181. 99       TRAPV instruction !
  182. 100      Privilege Violation !
  183. 101      Trace error !
  184. 102      Unimplemented 1010 opcode !
  185. 103      Unimplemented 1111 opcode !
  186.  
  187.  
  188. Related commands: error
  189.  
  190. Related tutor files: TheWizardCorner
  191.  
  192.  
  193. ================================ getstack ====================================
  194.  
  195.    <max stack> = GETSTACK( )
  196.  
  197.  
  198. This function shows the maximum stack usage for the last task monitored with
  199. the 'stack' command.
  200.  
  201.  
  202. Related commands: stack
  203.  
  204.  
  205. ================================= getcol =====================================
  206.  
  207.    <columns> = GETCOL( <logical window> )
  208.  
  209.  
  210. Get the real ³number of columns (or -1) for the ²logical window. Note that
  211. this is not always equal to the visible number of columns. If <columns>
  212. is not equal to -1 it is the total number of columns. If <columns> is equal
  213. to -1 it means that the logical window is ¹autoscalable in horizontal
  214. direction. To get the real number of columns (after scaling) you can use
  215. the 'cols' function.
  216.  
  217. 'getcol' uses ¹autodefault to the 'lwin' list for the first argument.
  218.  
  219.  
  220. Related commands: colrow fit
  221.  
  222. Related functions: getrow cols lines getlwin getx gety
  223.  
  224. Related lists: lwin
  225.  
  226. Related tutor files: Screen
  227.  
  228.  
  229. ================================= getrow =====================================
  230.  
  231.    <rows> = GETROW( <logical window> )
  232.  
  233.  
  234. Get the real ³number of rows (or -1) for the ²logical window. See the
  235. explanation for 'getcol' to see what the -1 really means.
  236.  
  237. 'getrow' uses ¹autodefault to the 'lwin' list for the first argument.
  238.  
  239.  
  240. Related commands: colrow fit
  241.  
  242. Related functions: getcol cols lines getlwin getx gety
  243.  
  244. Related lists: lwin
  245.  
  246. Related tutor files: Screen
  247.  
  248.  
  249. ================================== eval ======================================
  250.  
  251.    <result> = EVAL( <string pointer> )
  252.  
  253.  
  254. Evaluate the string at <string pointer> and return the result.
  255. 'eval' returns 0 if <string pointer> is 0.
  256.  
  257.  
  258. Example :
  259.  
  260. < disp eval("1+2") <enter>
  261. > 00000003 , 3
  262.  
  263. < scan <enter>
  264. ????< 4+4 <enter>
  265. < disp eval(input) <enter>
  266. > 00000008 , 8
  267.  
  268.  
  269. Related commands: disp void
  270.  
  271. Related functions: if
  272.  
  273. Related tutor files: Expressions
  274.  
  275.  
  276. =================================== if =======================================
  277.  
  278.    <result> = IF( <condition>,<expression 1>,<expression 2> )
  279.  
  280.  
  281. If <condition> is true, evaluate <expression 1>, else evaluate
  282. <expression 2>.
  283.  
  284.  
  285. Example :
  286.  
  287. < d if(1,2,3) <enter>
  288. > 00000002 , 2
  289.  
  290. < d if(0,2,3) <enter>
  291. > 00000003 , 3
  292.  
  293. < a=1 <enter>
  294. < b=2 <enter>
  295. < c=3 <enter>
  296. < d=4 <enter>
  297. < e=5 <enter>
  298. < d if(a,if(b,c,d),e) <enter>
  299. > 00000003 , 3
  300.  
  301. < void if(a==1,{help functions},{help commands}) <enter>
  302. > ...
  303.  
  304.  
  305. Related commands: disp void
  306.  
  307. Related functions: eval
  308.  
  309. Related tutor files: Expressions
  310.  
  311.  
  312. ================================= taglist ====================================
  313.  
  314.    <taglist> = TAGLIST( )
  315.  
  316.  
  317. Return the ³current tag list. This is a number between 0 and 15.
  318. You can change the current tag list with the 'usetag' or 'tg' commands.
  319.  
  320.  
  321. Related commands: usetag tg
  322.  
  323. Related tutor files: LookingAtThings
  324.  
  325.  
  326. ================================== peek ======================================
  327.  
  328.    <value> = PEEK( <structure pointer>,<struct def pointer>,<field name> )
  329.  
  330.  
  331. Returns the value of <structure>.<field name>. <struct def pointer>
  332. must be a pointer to a previously loaded ²structure definition. <structure
  333. pointer> is the pointer to the ¹structure itself. <field name> must be defined
  334. in the structure definition.
  335.  
  336. 'peek' uses ¹autodefault to the 'stru' list for the second argument.
  337.  
  338.  
  339. Related commands: addstruct interprete
  340.  
  341. Related functions: apeek stsize
  342.  
  343. Related lists: stru
  344.  
  345. Related tutor files: LookingAtThings
  346.  
  347.  
  348. ================================= stsize =====================================
  349.  
  350.    <size> = STSIZE( <struct def pointer> )
  351.  
  352.  
  353. Return the size of the ¹structure represented by <struct def pointer>.
  354. <struct def pointer> must be a ²structure definition loaded with 'addstruct'.
  355.  
  356. 'stsize' uses ¹autodefault to the 'stru' list for the first argument.
  357.  
  358.  
  359. Related commands: addstruct interprete
  360.  
  361. Related functions: peek apeek
  362.  
  363. Related lists: stru
  364.  
  365. Related tutor files: LookingAtThings
  366.  
  367.  
  368. ================================== apeek =====================================
  369.  
  370.    <address> = APEEK( <structure pointer>,<struct def pointer>,<field name> )
  371.  
  372.  
  373. Returns the address of <structure>.<field name>. <struct def pointer>
  374. must be a pointer to a previously loaded ²structure definition. <structure
  375. pointer> is the pointer to the ¹structure itself. <field name> must be defined
  376. in the structure definition.
  377.  
  378. 'apeek' uses ¹autodefault to the 'stru' list for the second argument.
  379.  
  380.  
  381. Related commands: addstruct interprete
  382.  
  383. Related functions: peek stsize
  384.  
  385. Related lists: stru
  386.  
  387. Related tutor files: LookingAtThings
  388.  
  389.  
  390. ================================== lines =====================================
  391.  
  392.    <lines> = LINES( <logwin> )
  393.  
  394.  
  395. This function returns the maximum ³number of lines available on the
  396. ²logical window.
  397.  
  398. 'lines' uses ¹autodefault to the 'lwin' list for the first argument.
  399.  
  400.  
  401. Example :
  402.  
  403. < disp lines(main) <enter>
  404. > 00000033 , 51
  405.  
  406.  
  407. Related commands: colrow fit
  408.  
  409. Related functions: cols getcols getrows getlwin getx gety
  410.  
  411. Related lists: lwin
  412.  
  413. Related tutor files: Screen
  414.  
  415.  
  416. ================================== cols ======================================
  417.  
  418.    <cols> = COLS( <logwin> )
  419.  
  420.  
  421. This function returns the maximum ³number of columns available on the
  422. ²logical window.
  423.  
  424. 'cols' uses ¹autodefault to the 'lwin' list for the first argument.
  425.  
  426.  
  427. Example :
  428.  
  429. < disp cols(main) <enter>
  430. > 00000056 , 86
  431.  
  432.  
  433. Related commands: colrow fit
  434.  
  435. Related functions: lines getcols getrows getlwin getx gety
  436.  
  437. Related lists: lwin
  438.  
  439. Related tutor files: Screen
  440.  
  441.  
  442. ================================= getlwin ====================================
  443.  
  444.    <logwin> = GETLWIN( )
  445.  
  446.  
  447. This function returns a pointer to the ³current logical window.
  448. The current logical window is not the same as the ³active logical window.
  449. The current logical window is the one that shows all output. The active
  450. logical window is the one where you can ¹scroll with the keyboard.
  451.  
  452.  
  453. Related commands: current on active
  454.  
  455. Related functions: getactive
  456.  
  457. Related lists: lwin
  458.  
  459. Related tutor files: Screen
  460.  
  461.  
  462. ================================ getactive ===================================
  463.  
  464.    <logwin> = GETACTIVE( )
  465.  
  466.  
  467. This function returns a pointer to the ³active logical window. This
  468. is the logical window where you can ¹scroll with the keyboard.
  469. You can change the active logical window with the 'active' command or with
  470. the ²<tab> key.
  471.  
  472.  
  473. Related commands: active on current
  474.  
  475. Related functions: getlwin
  476.  
  477. Related lists: lwin
  478.  
  479. Related tutor files: Screen
  480.  
  481.  
  482. ================================== getx ======================================
  483.  
  484.    <current x position> = GETX( )
  485.  
  486.  
  487. Get the current x ¹coordinate on the ³current logical window (in columns).
  488.  
  489.  
  490. Related commands: locate home cls current
  491.  
  492. Related functions: gety getcols getrows cols lines getlwin getchar
  493.  
  494. Related lists: lwin
  495.  
  496. Related tutor files: Screen
  497.  
  498.  
  499. ================================== gety ======================================
  500.  
  501.    <current y position> = GETY( )
  502.  
  503.  
  504. Get the current y ¹coordinate on the ³current logical window (in lines).
  505.  
  506.  
  507. Related commands: locate home cls current
  508.  
  509. Related functions: getx getcols getrows cols lines getlwin getchar
  510.  
  511. Related lists: lwin
  512.  
  513. Related tutor files: Screen
  514.  
  515.  
  516. ================================= getchar ====================================
  517.  
  518.    <char> = GETCHAR( )
  519.  
  520.  
  521. Get the ¹character at the ²current screenposition in the
  522. ³current logical window.
  523.  
  524.  
  525. Example :
  526.  
  527. < {locate 10,10;a=getchar()} <enter>
  528.  
  529.  
  530. Related commands: locate home cls current
  531.  
  532. Related functions: getx gety getcols getrows cols lines getlwin
  533.  
  534. Related lists: lwin
  535.  
  536. Related tutor files: Screen
  537.  
  538.  
  539. ================================= lastmem ====================================
  540.  
  541.    <memory> = LASTMEM( )
  542.  
  543.  
  544. This function returns the address that 'memory', 'view' and 'unasm' will use
  545. to ³continue their listing.
  546.  
  547.  
  548. Related commands: memory view unasm
  549.  
  550. Related functions: lastfound lastbytes lastlines
  551.  
  552. Related tutor files: LookingAtThings
  553.  
  554.  
  555. ================================ lastbytes ===================================
  556.  
  557.    <last number of bytes> = LASTBYTES( )
  558.  
  559.  
  560. This function returns the last number of bytes used by 'memory' or 'view'
  561. (320 by default).
  562.  
  563.  
  564. Related commands: memory view
  565.  
  566. Related functions: lastmem lastlines
  567.  
  568. Related tutor files: LookingAtThings
  569.  
  570.  
  571. ================================ lastlines ===================================
  572.  
  573.    <last number of lines> = LASTLINES( )
  574.  
  575.  
  576. This function returns the last number of lines used by 'unasm'
  577. (20 by default).
  578.  
  579.  
  580. Related commands: unasm
  581.  
  582. Related functions: lastmem lastbytes
  583.  
  584. Related tutor files: LookingAtThings
  585.  
  586.  
  587. ================================ lastfound ===================================
  588.  
  589.    <last found> = LASTFOUND( )
  590.  
  591.  
  592. This function returns the address of the second byte of the string found
  593. with 'search' or 'next'. This is the address where 'next' will continue
  594. with the search.
  595.  
  596.  
  597. Related commands: search next
  598.  
  599. Related functions: lastmem
  600.  
  601.  
  602. ================================== alloc =====================================
  603.  
  604.    <memory> = ALLOC( ('n',<size>) | ('c',<size>) | ('s',<string>) )
  605.  
  606.  
  607. Use this function for easy ²memory allocation.
  608. Use the 'free' function to free this memory, use the 'getsize' function
  609. to get the size of this memory and use the 'realloc' function to ¹reallocate
  610. the memory.
  611.  
  612. The memory allocated with this function is guaranteed to contain
  613. only 0 (except if the first argument is equal to 's').
  614.  
  615. Note that memory allocated with this command is automatically freed
  616. when PowerVisor quits.
  617.  
  618. When the blocksize is smaller than 65533 bytes the result from this function
  619. is a pointer after a word containing the size. This pointer is thus word
  620. alligned but not longword alligned.
  621. When the blocksize is bigger the result is a pointer after a longword
  622. containing the size. This pointer is longword alligned.
  623. Using word or longword allignment you can determine the size of a memory
  624. block. An easier way to do this is to use the 'getsize' function.
  625.  
  626.  
  627. Example :
  628.  
  629.  
  630. To allocate 1000 bytes :
  631.  
  632. < a=alloc(n,1000) <enter>
  633.  
  634.  
  635. To allocate 11 bytes and copy the string 'PowerVisor' to this memory use :
  636.  
  637. < a=alloc(s,'PowerVisor') <enter>
  638.  
  639.  
  640. To allocate 1000 bytes in chip ram use :
  641.  
  642. < a=alloc(c,1000) <enter>
  643.  
  644.  
  645.  
  646. Related commands: cleanup showalloc
  647.  
  648. Related functions: free realloc getsize isalloc
  649.  
  650.  
  651. ================================= realloc ====================================
  652.  
  653.    <new pointer> = REALLOC( <memoryblock>,<new size> )
  654.  
  655.  
  656. Use this function to ¹reallocate a ¹memoryblock allocated with the
  657. 'alloc' function. Only memoryblocks smaller than 64K are supported.
  658.  
  659.  
  660. Related commands: cleanup showalloc
  661.  
  662. Related functions: alloc free getsize isalloc
  663.  
  664.  
  665. ================================== free ======================================
  666.  
  667.    FREE( <pointer> )
  668.  
  669.  
  670. Free a block previously allocated with 'alloc'.
  671. Note that all memory allocated with 'alloc' is automatically freed when
  672. PowerVisor quits or when you use 'cleanup'.
  673.  
  674.  
  675. Related commands: cleanup showalloc
  676.  
  677. Related functions: alloc realloc getsize isalloc
  678.  
  679.  
  680. ================================= getsize ====================================
  681.  
  682.    <size> = GETSIZE( <memoryblock> )
  683.  
  684.  
  685. This function determines the size of a ¹memoryblock allocated with the
  686. 'alloc' function or some other PowerVisor commands.
  687.  
  688.  
  689. Related commands: cleanup showalloc
  690.  
  691. Related functions: alloc free isalloc realloc
  692.  
  693.  
  694. ================================= isalloc ====================================
  695.  
  696.    <pointer to pointer> = ISALLOC( <pointer> )
  697.  
  698.  
  699. This function checks if <pointer> points to a ¹memoryblock allocated
  700. with the 'alloc' function. If it is, 'isalloc' returns a pointer to
  701. the pointer, otherwise 0.
  702.  
  703.  
  704. Related commands: cleanup showalloc
  705.  
  706. Related functions: alloc free realloc getsize
  707.  
  708.  
  709. ================================= rfrate =====================================
  710.  
  711.    <refresh rate> = RFRATE( )
  712.  
  713.  
  714. Return the current ²refresh rate installed with the 'refresh' command.
  715.  
  716.  
  717. Related commands: refresh rwin
  718.  
  719. Related functions: rfcmd
  720.  
  721.  
  722. ================================== rfcmd =====================================
  723.  
  724.    <pointer to refresh command> = RFCMD( )
  725.  
  726.  
  727. Return a pointer to the current ²refresh command (or 0).
  728. This function returns a string if used from ¹ARexx.
  729.  
  730.  
  731. Related commands: refresh rwin
  732.  
  733. Related functions: rfrate
  734.  
  735.  
  736. ================================= curlist ====================================
  737.  
  738.    <pointer to string> = CURLIST( )
  739.  
  740.  
  741. Return a pointer to the name of the ²current list.
  742. This function returns a string if used from ¹ARexx.
  743.  
  744. Note for experienced users only !
  745.    The pointer to the string is actually a pointer into the infoblock
  746.    for the current list. curlist()-24 points to the start of the infoblock.
  747.    See 'TheWizardCorner' for more information about infoblocks (in the
  748.    'info base').
  749.    Note that if you want to use this feature in ARexx you have to call
  750.    this function using 'void' or 'assign'. If you call it directly you
  751.    will get a string and not a pointer in ARexx
  752.  
  753.  
  754. Related tutor files: GettingStarted TheWizardCorner
  755.  
  756.  
  757. =================================== key ======================================
  758.  
  759.    <vanillakey> = KEY( )
  760.  
  761.  
  762. Wait for a key and return the ²ascii value.
  763. This is especially useful in ¹scripts.
  764.  
  765.  
  766. Related commands: scan request
  767.  
  768. Related functions: qual
  769.  
  770.  
  771. ================================== qual ======================================
  772.  
  773.    <qualifier> = QUAL( )
  774.  
  775.  
  776. Return the ¹qualifier for the ³last pressed key (with 'key').
  777.  
  778.  
  779. Example :
  780.  
  781. < a=key() <enter>
  782. < disp qual() <enter>
  783.  
  784.  
  785. Related commands: scan
  786.  
  787. Related functions: key
  788.  
  789.  
  790. ================================== toppc =====================================
  791.  
  792.    <programcounter> = TOPPC( )
  793.  
  794.  
  795. This function returns the ²program counter visible at the top of the
  796. ³'Debug' logical window.
  797. You can set this program counter using the 'dstart' or 'dscroll' commands.
  798.  
  799.  
  800. Related commands: debug dwin dscroll dstart
  801.  
  802. Related functions: botpc isbreak getdebug
  803.  
  804. Related lists: dbug
  805.  
  806. Related tutor files: Debug
  807.  
  808.  
  809. ================================== botpc =====================================
  810.  
  811.    <programcounter> = BOTPC( )
  812.  
  813.  
  814. This function returns the ²program counter visible at the bottom of the
  815. ³'Debug' logical window.
  816. You can set this program counter using the 'dstart' or 'dscroll' commands.
  817.  
  818.  
  819. Related commands: debug dwin dscroll dstart
  820.  
  821. Related functions: toppc isbreak getdebug
  822.  
  823. Related lists: dbug
  824.  
  825. Related tutor files: Debug
  826.  
  827.  
  828. ================================ getdebug ====================================
  829.  
  830.    <debug node> = GETDEBUG( )
  831.  
  832.  
  833. Return the ³current debug node. You can set the current debug node with
  834. 'duse' and 'with'.
  835.  
  836.  
  837. Related commands: duse with debug
  838.  
  839. Related functions: isbreak toppc botpc
  840.  
  841. Related lists: dbug
  842.  
  843. Related tutor files: Debug
  844.  
  845.  
  846. ================================== base ======================================
  847.  
  848.    <pointer> = BASE( )
  849.  
  850.  
  851. This function returns the pointer to the ²first element in the ²current list.
  852.  
  853.  
  854. Example :
  855.  
  856. Go to the task list :
  857. < task <enter>
  858.  
  859. < list <enter>
  860. > Task node name      : Node     Pri StackPtr  StackS Stat Command        Acc
  861. > ---------------------------------------------------------------------------
  862. > RAM                 : 00C20C68 00  00C2117A    1200 Rdy            PROC -
  863. > golem.device        : 00C05C8A 05  00C064B6    2048 Wait           TASK -
  864. > NEWCON              : 00C2CAA8 05  00C2DAA2    4000 Wait           PROC -
  865. > ARP Shell Process   : 00C26180 00  00C270F2    4000 Wait           (03) -
  866. > PowerVisor1.0.task  : 00C31C28 00  00C76132    1024 Wait           TASK -
  867. > File System         : 00C16758 0A  00C16AF6     840 Wait           PROC -
  868. > File System         : 00C172E8 0A  00C17686     840 Wait           PROC -
  869. > trackdisk.device    : 00C068DE 05  00C09F2E     512 Wait           TASK -
  870. > trackdisk.device    : 00C17846 05  00C17A5E     512 Wait           TASK -
  871. > DH0                 : 00C0DF08 0A  00C0E356    1000 Wait           PROC -
  872. > input.device        : 00C03BFA 14  00C04C00    4096 Wait           TASK -
  873. > ARP Background She  : 00C66EB8 00  00C75CD2    4000 Run  pv        (01) -
  874.  
  875. < d base() <enter>
  876. > 00C20C68 , 12717160
  877.  
  878.  
  879. Related commands: list
  880.